package jgl.vajra.operator.part.home.contract;

import java.util.Map;

import io.reactivex.Observable;
import jgl.vajra.operator.bean.MyCarListBean;
import jgl.vajra.operator.databinding.ActivityListeningMyCarBinding;
import jgl.vajra.operator.widget.mvvm.model.BaseModel;
import jgl.vajra.operator.widget.mvvm.view.BaseMVVMView;
import jgl.vajra.operator.widget.mvvm.viewmodel.BaseViewModel;

public class ListeningMyCarContract {
    public abstract static class Model extends BaseModel {

        public abstract Observable getMyCarList(Map<String, Object> map);

    }

    public interface View extends BaseMVVMView {

        void onItemClick(int position, MyCarListBean itemData);

        void onDetails(MyCarListBean itemData);

        void onDetermine();

    }

    public abstract static class ViewModel extends BaseViewModel<View, ActivityListeningMyCarBinding, Model> {

        public abstract Observable getMyCarList(Map<String, Object> map);
    }
}
